part of '../client.dart';

extension AppClientLogin on Dio {
  /// 向特定手机号发送验证码
  Future<Response> sendSms(String phone) =>
      post("/login/send_sms", data: {"phone": phone});

  /// 校验验证码，获得token
  Future<Response> redeemSms(String phone, String code) =>
      post("/login/redeem_sms", data: {"phone": phone, "code": code});
}
